package com.happyfamily.springboot.crowdsourcingplatform.dao.sun;

import com.happyfamily.springboot.crowdsourcingplatform.model.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface SysUserDao
{
	@Update("UPDATE sys_user SET umoney=#{money} WHERE UID=#{uid}")
	public abstract int updateMoney(String money,Long uid);

	@Select("SELECT * FROM sys_user WHERE uaccount=#{account}")
	public abstract SysUser getUser(String account);

	@Select("SELECT * FROM sys_user WHERE uid=#{uid}")
	public abstract SysUser getUserById(Long uid);

	@Update("UPDATE sys_user SET newcount=#{count} WHERE UACCOUNT=#{account}")
	public abstract int updateCount(String account,Integer count);
}